<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>系统发生错误</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<link href="/nblog/Public/Css/general.css" rel="stylesheet" type="text/css" />
<link href="/nblog/Public/Css/main.css" rel="stylesheet" type="text/css" />
<style>
a:link,a:visited{ color:#FFFFFF; text-decoration:none;}
a:hover{ color:#FFFFFF; text-decoration:none;}
h2{
	border-bottom:1px solid #2B2B2B;
	padding:8px 0;
    font-size:25px;
	color:#FF6600;
	text-align:center;
}
.title{
	margin:4px 0;
	color:#F60;
	font-weight:bold;
}
.message,#trace{
	padding:1em;
	border:solid 1px #000;
	margin:10px 0;
	line-height:150%;
}
.message{
    font-size:14px; line-height:16px;
	border:1px solid #2E2E2E;
}
#trace{
	background:#E7F7FF;
	border:1px solid #E0E0E0;
	color:#535353;
}
.notice{
    padding:10px;
	margin:5px auto;
	color:#666;
	border:1px solid #5A5A5A;
	margin-top:25%;
	width:650px;
}
.red{
	color:red;
	font-weight:bold;
}
</style>
</head>
<body>
<h1><span class="action-span1">系统发生错误</span>
<div style="clear:both"></div>
</h1>
<div class="list-div">
<div style="background:#FFF; padding: 20px 50px; margin: 2px;">
<table align="center" width="400">
      <tr>
        <td width="50" valign="top"><img src="/nblog/Public/Images/warning.gif" width="32" height="32" border="0" alt="warning" /> </td>
        <td style="font-size: 14px; font-weight: bold;"><span  style="color:#F60;">[ 错误信息 ]</span></td>
      </tr>
	  <tr>
        <td></td>
        <td style="font-size: 14px; font-weight: bold; padding-left:20px; height:30px;"><?php echo $e['message'];?></td>
      </tr>
	  <?php if(isset($e['file'])) {?>
	  <tr>
        <td></td>
        <td>
<p style=" padding-left:20px; ">错误位置:　FILE: <span class="red"><?php echo $e['file'] ;?></span>　LINE: <span class="red"><?php echo $e['line'];?></span></p></td>
      </tr>
	  <?php }?> 
	  <?php if(isset($e['trace'])) {?>
	  <tr>
        <td></td>
        <td style="font-size: 14px; font-weight: bold;padding-top:10px;"><span  style="color:#F60;">[ TRACE ]</span></td>
      </tr>
	  <tr>
        <td></td>
        <td style="font-size: 14px; padding-left:20px; height:30px;"> <?php echo nl2br($e['trace']);?></td>
      </tr>
	  <?php }?>
      <tr>
        <td></td>
        <td id="redirectionMsg" style="padding-top:10px;"> 如果您不做出选择，将在  <span id="spanSeconds">8</span> 秒后自动跳转到首页。 </td>
      </tr>
      <tr>
        <td></td>
        <td><ul style="margin:0; padding:0 10px 0 0" class="msg-link">
            <li><a href="<?php echo($_SERVER['PHP_SELF'])?>">重试</a></li>
			<li><a href="javascript:history.back()">返回</a></li>
			<li><a href="<?php echo(__APP__);?>">回到首页</a></li>
          </ul></td>
      </tr>
    </table>
</div>
</div>
<div id="footer">Powered by <a target="_blank" href=" http://www.yurnero.net"><span style='color:#FF3300;'>nblog</span></a> | A Project-Based on <a target="_blank" href="http://thinkphp.cn/"><span style='color:#FF3300;'>ThinkPHP</span> <sup style='color:gray;font-size:9pt'><?php echo THINK_VERSION;?></sup></a></div>
<script language="JavaScript">
<!--
var seconds = 8;
var defaultUrl = "<?php echo(__APP__);?>";

onload = function()
{
  if (defaultUrl == 'javascript:history.go(-1)' && window.history.length == 0)
  {
    document.getElementById('redirectionMsg').innerHTML = '';
    return;
  }
  window.setInterval(redirection, 1000);
}
function redirection()
{
  if (seconds <= 0)
  {
    window.clearInterval();
    return;
  }
  seconds --;
  document.getElementById('spanSeconds').innerHTML = seconds;
  if (seconds == 0)
  {
    window.clearInterval();
    location.href = defaultUrl;
  }
}
//-->
</script>
</body>
</html>
